import request from '@/utils/request'
export const reqAttr1list = ()=>request({
    url:`/admin/product/getCategory1`,
    method:"get"
})
export const reqAttr2list = (category1Id)=>request({
    url:`/admin/product/getCategory2/${category1Id}`,
    method:'get'
})
export const reqAttr3list = (category2Id)=>request({
    url:`/admin/product/getCategory3/${category2Id}`,
    method:'get'
})
///admin/product/attrInfoList/{category1Id}/{category2Id}/{category3Id}
export const getAttrdata = (cForm)=>request({
    url:`/admin/product/attrInfoList/${cForm.category1Id}/${cForm.category2Id}/${cForm.category3Id}`,
    method:'get'
})
//增加属性值或者修改属性值 修改接口
export const saveAttrInfo = (data)=>request({
    url:`/admin/product/saveAttrInfo`,
    method:'post',
    data
})